<?php

// @formatter:off
/**
 * @file menu.php
 *
 * @author Alejandro Dario Simi
 * @date $Date: 2014-05-04 01:33:52 +0000 (Sun, 04 May 2014) $
 *
 * $Id: menu.php 111 2014-05-04 01:33:52Z daemonraco@gmail.com $
 * $URL: http://wcomix.googlecode.com/svn/trunk/frontview/actions/menu.php $
 */
// @formatter:on

class ActionControllerMenu extends WCActionController {
	//
	// Magic methods.
	public function __construct() {
		parent::__construct();

		if(isset($_REQUEST["code"])) {
			$this->_selector["extra"] = $_REQUEST["code"];
		}
	}
	//
	// Public methods.
	//
	// Protected methods.
	protected function subRun() {
		$ok = true;

		$code = isset($_REQUEST["code"]) ? $_REQUEST["code"] : false;
		$this->_manager->items = WCFVMenu::GetMenuItems($code);

		return $ok;
	}
}
